<%@include file="/pages/common/taglib.jsp"  %>
<%@page language="java" pageEncoding="UTF-8" %>
<%@include file="/scripts/widgets/jquery-ui/css_lib.jsp"%>
<style>
<!--
.ModuleToggleLeft, .ModuleToggleRight{
	background-color: white;
	background-repeat: no-repeat;
	background-position: center;
	height:100%;
	width:6px;
	cursor:pointer;
	float:left;
} 
.ModuleToggleLeft {
	background-image: url(${ctx}/images/common/splitpanel_button_hori1.gif);
}
.ModuleToggleRight {
	background-image: url(${ctx}/images/common/splitpanel_button_hori2.gif);
}
-->
</style>
<script type="text/javascript">
function contour(type){
	if(document.getElementById("ModuleLeft") && document.getElementById("ModuleRight")){
		document.getElementById("ModuleLeft").style.height="";
		document.getElementById("ModuleRight").style.height="";
		var RightBox_height = document.body.clientHeight-$("#ModuleToggle").offset().top-10;
		var RightBox_width=document.body.clientWidth-$("#ModuleToggle").offset().left-10-6;		
		var min_height = document.body.clientHeight - 146;
		if (RightBox_height < min_height) {
			RightBox_height = min_height;
		}
		if ($.browser.msie){
			document.getElementById("divFrame").style.height=RightBox_height-16;
			document.getElementById('ModuleRightBox').style.width=RightBox_width+10;
			document.getElementById("ModuleLeft").style.height = RightBox_height  +10+ "px";
			document.getElementById("ModuleRight").style.height = RightBox_height  +16+ "px";
		} else {
			document.getElementById("divFrame").style.height=RightBox_height-25;
			document.getElementById('ModuleRightBox').style.width=RightBox_width;
			document.getElementById("ModuleLeft").style.height = RightBox_height + "px";
			document.getElementById("ModuleRight").style.height =RightBox_height +2+ "px";
		}
		document.getElementById("ModuleToggle").style.height = RightBox_height +"px";
	}
}
</script>
<script type="text/javascript">
var subModelMenu;
window.onload = function() {
	subModelMenu = new SDMenu("divMenu");
	subModelMenu.oneSmOnly = true;
	subModelMenu.speed = 10;
	subModelMenu.init();
};
$(window).ready(function(){
//	initSubModel();
//	$("#ModuleToggle").bind("click", toggleSubModel);
});
</script>

<!--Left-->
<div id="menu" style="float:left">
	<%@include file="/pages/common/submodel_sub.jsp"  %>
</div>
<div class="ModuleToggle" id="ModuleToggle">
	<div id="toggleDivtoLeft" class="ModuleToggleLeft" title="隐藏菜单栏" ></div>
	<div id="toggleDivtoRight" class="ModuleToggleRight" title="显示菜单栏"></div>
</div>
<!--Left-->